package com.internetCafes.spms.web.customer.controller;

import com.internetCafes.spms.common.utils.entity.RR;
import com.internetCafes.spms.web.customer.bizservice.member.IMemberBizService;
import com.internetCafes.spms.web.customer.model.member.MemberListReq;
import com.internetCafes.spms.web.customer.model.member.MemberListRes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 企业人员请求参数
 */
@RestController
@RequestMapping("/ent/member")
public class EntMemberController {

    @Autowired
    private IMemberBizService memberBizService;

    @PostMapping("/list")
    public RR<List<MemberListRes>> list(@RequestBody MemberListReq req) {
        return RR.success(memberBizService.list(req));
    }
}
